package com.cwd.arm.infrastructure.dao.impl;

import com.cwd.arm.infrastructure.dao.TaxDao;
import com.cwd.arm.infrastructure.dao.base.DaoImpl;
import com.cwd.arm.infrastructure.mapper.TaxMapper;
import com.cwd.arm.infrastructure.po.TaxPo;
import com.cwd.arm.infrastructure.query.TaxDaoQuery;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* Description:开票信息
* Created on 2021年11月16日
* @author  yan
*/
@Service
public class TaxDaoImpl extends DaoImpl<TaxMapper, TaxPo> implements TaxDao {

    @Override
    public List<TaxPo> selectByQuery(TaxDaoQuery daoQuery) {
//        QueryWrapper queryWrapper = new QueryWrapper();
//        queryWrapper.eq(ObjectUtils.isNotEmpty(daoQuery.getProjectId()),"project_id",daoQuery.getProjectId());
//        queryWrapper.eq(ObjectUtils.isNotEmpty(daoQuery.getReceiveNodeId()),"receive_node_id",daoQuery.getReceiveNodeId());
//        setSort(daoQuery,queryWrapper);
//        return list(queryWrapper);
        List<TaxPo> poList = baseMapper.selectByQuery(daoQuery);
        setUserInfo(poList);
        return poList;
    }

}
